<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
    <title>{$t['title']} - {:set('title')} </title>
	<meta name="keywords" content="{:ks(zw($t['content']))}">
	<meta name="description" content="{:cut_c(htmlspecialchars_decode($t['content']))}">
    {include file="header"}
    <link rel="stylesheet" href="*ADMIN*/wangEditor/css/wangEditor.min.css">
    <script type="text/javascript" src="*ADMIN*/wangEditor/js/wangEditor.min.js"></script>
    <style type="text/css" media="all">
    .wangEditor-container .wangEditor-txt pre {
        font-size: 14px;
    }
    .wangEditor-container .wangEditor-txt blockquote {
        display: inline-block;
        border-left: 0px solid #d0e5f2;
        padding: 5px 0px;
        background-color: #ffffff00;
    }
    </style>
    <!--广告位置-->
    <div class="want">
        {:ad(3)} 
    </div>
    <div class="carbox clearfloat">
        <div class="carmat">
            <div class="news_tit clearfloat">
                <h1>{$t['title']}</h1>
            </div>
            <div class="article_body_wrap">
                <div class="article_top_info">
                    <ul class="article_middle_info">
                        <li><span class="icons"><i class="iconfont">&#xe69b;</i>  </span>{:fun_st('comment',array('open'=>1,'fid'=>$t['id']))}</li>
                        <li><span class="icons"><i class="iconfont">&#xe6e6;</i>  </span>{$t['view']}</li>
                        <li><span class="icons"><i class="iconfont">&#xe6bb;</i>  </span>{$t.time|times}</li>
                        <li><a href="{:url('index/model/cate',array('alias'=>$cate.alias))}"><span class="icons"><i class="iconfont">&#xe6bb;</i>  </span>{$cate.name}</a></li>
                    </ul>
                </div>
                <div class="wangEditor-container" style="border: 0px solid #e6e6e6;margin-bottom: 30px">
    		        <div class="wangEditor-txt" style="padding: 0;">
                        {if $fufei==1}
                        <a href="javascript:;" class="del_t" style="display: block;line-height: 100px;text-align: center; font-size: 16px;font-weight: 300;color: #5298ff;background-color: #f6f6f6;border: 2px solid #5298ff;border-radius: 5px;" name="确定要付费{$t['jifen']}{:set('jifen',2)}查看该内容吗？" url="{:url('index/api/fufei',array('id'=>$t.id))}">付费{$t['jifen']}{:set('jifen',2)}查看内容</a>
                        {else/}
                        {$t.content}
                        {/if}
                    </div>
                </div>
            </div>
            {if guoji('open2')==1}
            <!--评论-->
            <div class="yellow-skin blog-page" id="plhuifu">
                <div class="article_detail_wrapss single_article_wrap article_wrap format-standard">
                    <div class="comment-area">
                        <div class="comment-box submit-form">
                            <div class="widget-header"><h4 class="huifuSM">评论</h4></div>
                            <script type="text/javascript">
                            $(document).ready(function(){
                                $('.huifuSM').click(function(){
                                    $(".huifuS").val("");
                                    $(".huifuSM").html("评论");
                                });
                            });
                            </script> 
                            <div class="comment-form">
                                <form class="layui-form layui-form-pane form1" url="{:url('index/api/comment_add')}" t_url="javascript:parent.location.reload();" id="commentform">
                                    <input type="hidden" name="id" value="{$t.id}">
                                    <input type="hidden" name="m" value="{$t.m}">
                                    <input type="hidden" class="huifuS" name="tid" value="0">
                                    <div class="row">
                                        <div class="col-lg-12 col-md-12 col-sm-12">
                                            <div class="form-group">
                                                <textarea id="textarea" name="content" class="form-control" cols="50" rows="10" placeholder="说出您的看法...."></textarea>
                                            </div>
                                        </div>
                                        <div class="pt-10" style="float: right;">
                                            <a href="javascript:;" lay-submit lay-filter="cms1" class="layui-btn btn"><i class="layui-icon">&#xe609;</i> 评 论 </a>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <div class="all-comments mt-10">
                            <div class="widget-header" style="width: 50%;"><h4>{:fun_st('comment',array('open'=>1,'fid'=>$t['id']))} 条评论</h4></div>
                            <div class="comment-list">
                                <ul>
                                    {volist name=":fun_s('comment',array('open'=>1,'tid'=>0,'fid'=>$t['id'],'m'=>$t.m),'id desc',10,false,0)" id="vo" empty="<div align='center' style='padding: 100px 0px 100px 0px;'>你来消灭 零 评论</div>"}
                                    <li class="article_comments_wrap">
                                        <article>
                                            <div class="article_comments_thumb">
                                                <a href="{:url('index/user/uid',array('id'=>$vo.uid))}" target="_blank">
                                                    <img src="{:fun_sc_p('member', array('userid'=>$vo['uid']), 'userhead')}" alt="{:fun_sc_p('member', array('userid'=>$vo['uid']), 'username')}">
                                                </a>
                                            </div>
                                            <div class="comment-details">
                                                <div class="comment-meta">
                                                    <div class="comment-left-meta">
                                                        <h4 class="author-name">{:fun_sc_p('member', array('userid'=>$vo['uid']), 'username')}<span class="selected"><i class="fas fa-bookmark"></i></span></h4>
                                                        <div class="comment-date">{$vo.time|times}</div>
                                                    </div>
                                                    <div class="comment-reply"><a href="#plhuifu" class="reply huifu{$vo.id}"><span class="icona">
                                                        <i class="iconfont">&#xe718;</i> </span>回复</a>
                                                    </div>
                                                    <script type="text/javascript">
                                                    $(document).ready(function(){
                                                        $('.huifu{$vo.id}').click(function(){
                                                            $(".huifuS").val("{$vo.id}");
                                                            $(".huifuSM").html("回复 @ {:fun_sc_p('member', array('userid'=>$vo['uid']), 'username')}");
                                                        });
                                                    });
                                                    </script>
                                                </div>
                                                <div class="comment-text">{$vo.content|htmlspecialchars_decode}</div>
                                            </div>
                                        </article>
                                        {volist name=":fun_s('comment',array('open'=>1,'tid'=>$vo.id,'fid'=>$t['id'],'m'=>$t.m),'id desc',10,false,0)" id="v"}
                                            <ul class="children"><li class="article_comments_wrap">
                                                <article>
                                                    <div class="article_comments_thumb">
                                                        <a href="{:url('index/user/uid',array('id'=>$v.uid))}" target="_blank">
                                                            <img src="{:fun_sc_p('member', array('userid'=>$v['uid']), 'userhead')}" alt="{:fun_sc_p('member', array('userid'=>$v['uid']), 'username')}">
                                                            </a>
                                                    </div>
                                                    <div class="comment-details">
                                                        <div class="comment-meta">
                                                            <div class="comment-left-meta">
                                                                <h4 class="author-name">{:fun_sc_p('member', array('userid'=>$v['uid']), 'username')}</h4>
                                                                <div class="comment-date">{$v.time|times}</div>
                                                            </div>
                                                        </div>
                                                        <div class="comment-text">{$v.content|htmlspecialchars_decode}</div>
                                                    </div>
                                                </article>
                                            </li>
                                        </ul>
                                        {/volist}
                                    </li>
                                    {/volist}
                                </ul>
                            </div>
                        </div>
                    </div>
                </div> 
            </div>     
            <!--评论end-->
            {/if}
        </div>
        
        <!--右边-->
        <div class="drivebox">
            <div class="industbox pb-10">
                <div class="essay">
                    <div class="perima clearfloat">
                        <div class="perpic">
                            <a href="{:url('index/user/uid',array('id'=>$t.uid))}" target="_blank">
                                <img src="{:fun_u($t.uid, 'userhead')}">
                            </a>
                        </div>
                        <div class="pername">{:fun_u($t.uid, 'username')}</div>
                    </div>
                    <div class="per_intr">	<a href="">{:dingyi(fun_u($t.uid, 'description'),'这个人很懒没有留下什么..')}</a>
                    </div>
                    <!--头像-->
                    <div class="cillbox clearfloat">
                        <div class="cill">
                            <a href="javascript:;">
                                <p class="cill_num">{:fun_st($t.m, array('uid' => $t.uid))}</p>
                                <p class="cill_name">{:fun_model($t.m,'title')}</p>
                            </a>
                        </div>
                        <div class="cill">
                            <a href="javascript:;">
                                <p class="cill_num">{:fun_st('comment', array('uid' => $t.uid))}</p>
                                <p class="cill_name">评论</p>
                            </a>
                        </div>
                        <div class="cill">
                            <a href="javascript:;">
                                <p class="cill_num">{:fun_u($t.uid, 'point')}</p>
                                <p class="cill_name">{:set('jifen',2)}</p>
                            </a>
                        </div>
                    </div>
                    <div class="cilllike clearfloat">
                        <div class="atttent">	<a href="javascript:;" class="shoucang" url="{:url('index/api/shoucang',array('id'=>$t.id,'m'=>$vo.m))}">{if fun_st('shoucang',array('tid'=>$t.id))>0}收藏成功{else/}收藏{/if}</a>
                        </div>
                        <div class="atttent">	<a href="javascript:;" class="dianzan" zan="{$t['zan']+1}" url="{:url('index/api/zan',array('id'=>$t.id,'m'=>$vo.m))}">点赞(<span class="dianzans">{$t['zan']}</span>)</a>
                        </div>
                    </div>
                </div>
            </div>
            <!--热门文章-->
            <div class="industbox">
                <div class="widget-header"><h4>同类热门</h4></div>
                <div class="indust">
                    <ul>
                        {volist name=":fun_sd($t.m,array('f.open'=>1),$t['tid'],'view desc','8',1)" id="vo"}
                        <li>
                            <a href="{:url('index/model/html',array('model'=>$vo.m,'id'=>$vo.id))}" class="clearfloat">
                                <div class="industpic">
                                    <img src="{$vo.content|pic}" />
                                </div>
                                <div class="industcont">
                                    <h1>{$vo.title}</h1>
                                    <p>{:cut_c($vo.content,15)}</p>
                                </div>
                            </a>
                        </li>
                        {/volist}
                    </ul>
                </div>
            </div> 
        </div>
    </div>
    <!--预埋钩子-->
    {:hook('indexhtml')}
    <link rel="stylesheet" href="*ADMIN*/css/ir-black.css">
    <script src="*ADMIN*/js/highlight.min.js"></script> 
    <script>hljs.initHighlightingOnLoad();</script> 
    {include file="footer"}
    <script>bianjiqi();</script> 